type crypto/internal/bigmod.choice
26 uses
crypto/internal/bigmod (current package)
nat.go#L24: type choice uint
nat.go#L26: func not(c choice) choice { return 1 ^ c }
nat.go#L28: const yes = choice(1)
nat.go#L29: const no = choice(0)
nat.go#L32: func ctMask(on choice) uint { return -uint(on) }
nat.go#L36: func ctEq(x, y uint) choice {
nat.go#L40: return not(choice(c1 | c2))
nat.go#L45: func ctGeq(x, y uint) choice {
nat.go#L48: return not(choice(carry))
nat.go#L211: func (x *Nat) Equal(y *Nat) choice {
nat.go#L225: func (x *Nat) IsZero() choice {
nat.go#L240: func (x *Nat) cmpGeq(y *Nat) choice {
nat.go#L252: return not(choice(c))
nat.go#L258: func (x *Nat) assign(on choice, y *Nat) *Nat {
nat.go#L429: needSubtraction = not(choice(borrow)) | choice(carry)
nat.go#L488: func (x *Nat) maybeSubtractModulus(always choice, m *Modulus) {
nat.go#L493: keep := not(choice(underflow)) | choice(always)
nat.go#L506: x.assign(choice(underflow), t)
nat.go#L516: x.maybeSubtractModulus(choice(overflow), m)
nat.go#L617: x.maybeSubtractModulus(choice(c), m)
nat.go#L635: x.maybeSubtractModulus(choice(c), m)
nat.go#L649: x.maybeSubtractModulus(choice(c), m)
nat.go#L663: x.maybeSubtractModulus(choice(c), m)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |